package com.cqcomponents.components;

import java.util.ArrayList;
import java.util.List;

public class NavigationItem extends Page {
	private List<NavigationItem> items = new ArrayList<NavigationItem>();

	// @ComponentInjection()
	public void setItems(List<NavigationItem> items) {
		this.items = items;
	}

	public List<NavigationItem> getItems() {
		return items;
	}

	public boolean isActive() {
		return this.getCurrentPagePath().equals(this.getPagePath());
	}

	public boolean getHasChildItems() {
		return this.items.size() > 0;
	}

}
